package ec.fugu.amf;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * 
 * @author deathUser
 *
 */
public abstract class AmfSerializer {
	protected DataOutputStream outputStream;
	
	public AmfSerializer(DataOutputStream stream){
		this.outputStream = stream;
	}
	
	public abstract boolean writeAMFData(Object data, Byte forcetype) throws IOException;
	
	public DataOutputStream getStream(){
		return this.outputStream;
	}
}